﻿using System;

namespace YArchitech.Temp
{
	public class HYPipeAccessory : HYAccessory, IHYXmlSerial
	{
		public HYPipeAccessory()
		{
			base.Name = "水管阀件";
			this.m_Section = new HYPipeSpecification();
		}

		public HYPipeSpecification Section
		{
			get
			{
				return this.m_Section;
			}
			set
			{
				this.m_Section = value;
			}
		}

		public override void CalCoefficient()
		{
		}

		public override void Cal(HYSystemOption option)
		{
			double val = base.ShockResistance * option.ShockFix;
			HYPipeline hostPipeline = this.GetHostPipeline();
			if (hostPipeline == null)
			{
				return;
			}
			hostPipeline.AddAttachedObject(this, base.Name, val, true, 0);
		}

		protected HYPipeSpecification m_Section;
	}
}
